package com.lpit.controller;

import com.lpit.pojo.Activity;
import com.lpit.result.ResponseResult;
import com.lpit.service.impl.ActivityInformationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/activity")
public class ActivityInformationController {
    @Autowired
    ActivityInformationServiceImpl activityInformationService;
    /**
     * 查看活动信息列表
     * @return
     */
    @GetMapping("/info")
    public ResponseResult<List<Activity>> getInfo(){
        return activityInformationService.getActivity();
    }
}
